package com.jiutian.cmsskitdev.config;

import cn.hutool.setting.Setting;
/**
 * @author: Jerryzaj
 * @description TODO
 * @date: 2024/5/27 19:56
 */
public class StageConfig {
    // 应用标题
    public static String title = "中国移动云能力中心";
    // 应用图标
    public static String icon = "";
    // 窗口宽度
    public static int stageWidth = 640;
    // 窗口高度
    public static int stageHeight = 480;
    // 允许调整窗口尺寸
    public static boolean stageResizable = true;

    public static void init() {
        Setting setting = new Setting("cmsskit.properties");
        title = setting.get("title");
        icon = setting.get("icon");
        stageWidth = setting.getInt("stage.width");
        stageHeight = setting.getInt("stage.height");
        stageResizable = setting.getBool("stage.resizable");
    }
}
